function get_sign(data_,token){
    r = {
        "prefix": "",
        "mainDomain": "ele.me",
        "subDomain": "waimai-guide",
        "pageDomain": "ele.me",
        "H5Request": true,
        "ttid": "h5@Web_android_10.6.15",
        "useJsonpResultType": false,
        "safariGoLogin": true,
        "useAlipayJSBridge": false,
        "WindVaneRequest": false,
        "getJSON": true,
        "token": token
    }
    n = {
        "api": "mtop.alsc.eleme.h5.trigger.respond",
        "v": "1.0",
        "data": data_,
        "ecode": 0,
        "dataType": "json",
        "headers": {
            "x-ele-ua": "Rajax/1 DeviceId/D3JOK8N9HRIOOL-1658127081248 Nexus Longitude/104.097269 Latitude/30.602416 Android/AndroidOS Language/zh-cn RenderWay/H5 From/mobile.default H5Version/10.6.15 H5Build/14 Mobile Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36"
        },
        "prefix": "",
        "subDomain": "waimai-guide",
        "mainDomain": "ele.me",
        "H5Request": true,
        "pageDomain": "ele.me",
        "ttid": "h5@Web_android_10.6.15",
        "type": "get"
    }
    var a = "//" + (r.prefix ? r.prefix + "." : "") + (r.subDomain ? r.subDomain + "." : "") + r.mainDomain + "/h5/" + n.api.toLowerCase() + "/" + n.v.toLowerCase() + "/"
        , s = n.appKey || ("waptest" === r.subDomain ? "4272" : "12574478")
        , u = (new Date).getTime()
        , c = function(e) {
            debugger;
            function t(e, t) {
                return e << t | e >>> 32 - t
            }
            function n(e, t) {
                var n, r, o, i, a;
                return o = 2147483648 & e,
                i = 2147483648 & t,
                a = (1073741823 & e) + (1073741823 & t),
                (n = 1073741824 & e) & (r = 1073741824 & t) ? 2147483648 ^ a ^ o ^ i : n | r ? 1073741824 & a ? 3221225472 ^ a ^ o ^ i : 1073741824 ^ a ^ o ^ i : a ^ o ^ i
            }
            function r(e, r, o, i, a, s, u) {
                return e = n(e, n(n(function(e, t, n) {
                    return e & t | ~e & n
                }(r, o, i), a), u)),
                n(t(e, s), r)
            }
            function o(e, r, o, i, a, s, u) {
                return e = n(e, n(n(function(e, t, n) {
                    return e & n | t & ~n
                }(r, o, i), a), u)),
                n(t(e, s), r)
            }
            function i(e, r, o, i, a, s, u) {
                return e = n(e, n(n(function(e, t, n) {
                    return e ^ t ^ n
                }(r, o, i), a), u)),
                n(t(e, s), r)
            }
            function a(e, r, o, i, a, s, u) {
                return e = n(e, n(n(function(e, t, n) {
                    return t ^ (e | ~n)
                }(r, o, i), a), u)),
                n(t(e, s), r)
            }
            function s(e) {
                var t, n = "", r = "";
                for (t = 0; 3 >= t; t++)
                    n += (r = "0" + (e >>> 8 * t & 255).toString(16)).substr(r.length - 2, 2);
                return n
            }
            var u, c, l, f, p, d, h, v, m, g;
            for (g = function(e) {
                for (var t, n = e.length, r = n + 8, o = 16 * ((r - r % 64) / 64 + 1), i = new Array(o - 1), a = 0, s = 0; n > s; )
                    a = s % 4 * 8,
                    i[t = (s - s % 4) / 4] = i[t] | e.charCodeAt(s) << a,
                    s++;
                return a = s % 4 * 8,
                i[t = (s - s % 4) / 4] = i[t] | 128 << a,
                i[o - 2] = n << 3,
                i[o - 1] = n >>> 29,
                i
            }(e = function(e) {
                e = e.replace(/\r\n/g, "\n");
                for (var t = "", n = 0; n < e.length; n++) {
                    var r = e.charCodeAt(n);
                    128 > r ? t += String.fromCharCode(r) : r > 127 && 2048 > r ? (t += String.fromCharCode(r >> 6 | 192),
                    t += String.fromCharCode(63 & r | 128)) : (t += String.fromCharCode(r >> 12 | 224),
                    t += String.fromCharCode(r >> 6 & 63 | 128),
                    t += String.fromCharCode(63 & r | 128))
                }
                return t
            }(e)),
            d = 1732584193,
            h = 4023233417,
            v = 2562383102,
            m = 271733878,
            u = 0; u < g.length; u += 16)
                c = d,
                l = h,
                f = v,
                p = m,
                d = r(d, h, v, m, g[u + 0], 7, 3614090360),
                m = r(m, d, h, v, g[u + 1], 12, 3905402710),
                v = r(v, m, d, h, g[u + 2], 17, 606105819),
                h = r(h, v, m, d, g[u + 3], 22, 3250441966),
                d = r(d, h, v, m, g[u + 4], 7, 4118548399),
                m = r(m, d, h, v, g[u + 5], 12, 1200080426),
                v = r(v, m, d, h, g[u + 6], 17, 2821735955),
                h = r(h, v, m, d, g[u + 7], 22, 4249261313),
                d = r(d, h, v, m, g[u + 8], 7, 1770035416),
                m = r(m, d, h, v, g[u + 9], 12, 2336552879),
                v = r(v, m, d, h, g[u + 10], 17, 4294925233),
                h = r(h, v, m, d, g[u + 11], 22, 2304563134),
                d = r(d, h, v, m, g[u + 12], 7, 1804603682),
                m = r(m, d, h, v, g[u + 13], 12, 4254626195),
                v = r(v, m, d, h, g[u + 14], 17, 2792965006),
                d = o(d, h = r(h, v, m, d, g[u + 15], 22, 1236535329), v, m, g[u + 1], 5, 4129170786),
                m = o(m, d, h, v, g[u + 6], 9, 3225465664),
                v = o(v, m, d, h, g[u + 11], 14, 643717713),
                h = o(h, v, m, d, g[u + 0], 20, 3921069994),
                d = o(d, h, v, m, g[u + 5], 5, 3593408605),
                m = o(m, d, h, v, g[u + 10], 9, 38016083),
                v = o(v, m, d, h, g[u + 15], 14, 3634488961),
                h = o(h, v, m, d, g[u + 4], 20, 3889429448),
                d = o(d, h, v, m, g[u + 9], 5, 568446438),
                m = o(m, d, h, v, g[u + 14], 9, 3275163606),
                v = o(v, m, d, h, g[u + 3], 14, 4107603335),
                h = o(h, v, m, d, g[u + 8], 20, 1163531501),
                d = o(d, h, v, m, g[u + 13], 5, 2850285829),
                m = o(m, d, h, v, g[u + 2], 9, 4243563512),
                v = o(v, m, d, h, g[u + 7], 14, 1735328473),
                d = i(d, h = o(h, v, m, d, g[u + 12], 20, 2368359562), v, m, g[u + 5], 4, 4294588738),
                m = i(m, d, h, v, g[u + 8], 11, 2272392833),
                v = i(v, m, d, h, g[u + 11], 16, 1839030562),
                h = i(h, v, m, d, g[u + 14], 23, 4259657740),
                d = i(d, h, v, m, g[u + 1], 4, 2763975236),
                m = i(m, d, h, v, g[u + 4], 11, 1272893353),
                v = i(v, m, d, h, g[u + 7], 16, 4139469664),
                h = i(h, v, m, d, g[u + 10], 23, 3200236656),
                d = i(d, h, v, m, g[u + 13], 4, 681279174),
                m = i(m, d, h, v, g[u + 0], 11, 3936430074),
                v = i(v, m, d, h, g[u + 3], 16, 3572445317),
                h = i(h, v, m, d, g[u + 6], 23, 76029189),
                d = i(d, h, v, m, g[u + 9], 4, 3654602809),
                m = i(m, d, h, v, g[u + 12], 11, 3873151461),
                v = i(v, m, d, h, g[u + 15], 16, 530742520),
                d = a(d, h = i(h, v, m, d, g[u + 2], 23, 3299628645), v, m, g[u + 0], 6, 4096336452),
                m = a(m, d, h, v, g[u + 7], 10, 1126891415),
                v = a(v, m, d, h, g[u + 14], 15, 2878612391),
                h = a(h, v, m, d, g[u + 5], 21, 4237533241),
                d = a(d, h, v, m, g[u + 12], 6, 1700485571),
                m = a(m, d, h, v, g[u + 3], 10, 2399980690),
                v = a(v, m, d, h, g[u + 10], 15, 4293915773),
                h = a(h, v, m, d, g[u + 1], 21, 2240044497),
                d = a(d, h, v, m, g[u + 8], 6, 1873313359),
                m = a(m, d, h, v, g[u + 15], 10, 4264355552),
                v = a(v, m, d, h, g[u + 6], 15, 2734768916),
                h = a(h, v, m, d, g[u + 13], 21, 1309151649),
                d = a(d, h, v, m, g[u + 4], 6, 4149444226),
                m = a(m, d, h, v, g[u + 11], 10, 3174756917),
                v = a(v, m, d, h, g[u + 2], 15, 718787259),
                h = a(h, v, m, d, g[u + 9], 21, 3951481745),
                d = n(d, c),
                h = n(h, l),
                v = n(v, f),
                m = n(m, p);
            return (s(d) + s(h) + s(v) + s(m)).toLowerCase()
    }(r.token + "&" + u + "&" + s + "&" + n.data)


        , l = {
        jsv: "2.7.0",
        appKey: s,
        t: u,
        sign: c
    }
    return l
}

var x= get_sign('{"sceneCode":"MINIAPP_ELEME_HOME_LIST","pageParams":"{\\"offset\\":0,\\"rankId\\":\\"\\",\\"behavior\\":\\"\\",\\"queryParams\\":\\"{\\\\\\"id\\\\\\":\\\\\\"\\\\\\",\\\\\\"description\\\\\\":\\\\\\"\\\\\\",\\\\\\"title\\\\\\":\\\\\\"附近推荐\\\\\\",\\\\\\"tabName\\\\\\":\\\\\\"%E9%99%84%E8%BF%91%E6%8E%A8%E8%8D%90\\\\\\",\\\\\\"pageCode\\\\\\":\\\\\\"tsfm_home_shoplist\\\\\\",\\\\\\"pageType\\\\\\":\\\\\\"\\\\\\",\\\\\\"clickAfterColor\\\\\\":\\\\\\"#00a6ff\\\\\\",\\\\\\"clickBeforeColor\\\\\\":\\\\\\"#333\\\\\\",\\\\\\"fontWeight\\\\\\":\\\\\\"bold\\\\\\",\\\\\\"listType\\\\\\":\\\\\\"\\\\\\",\\\\\\"position\\\\\\":1,\\\\\\"scrollTop\\\\\\":0}\\",\\"limit\\":5,\\"scene\\":\\"miniapp:homepage\\",\\"elemeRequestId\\":\\"QDHACG8AM3OPQB-1675159208031\\"}","longitude":104.097269,"latitude":30.602416}', 'c21bcda0e49b57363f6f7b791363815b'
)
console.log(x)
